home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / util / utlsrc37.zoo / Makefile.minix < prev    next >
Encoding:
Makefile  |  1992-11-06  |  1.1 KB  |  41 lines

  1. #
  2. # Makefile for utils
  3. # for use with a unix hosted gcc based cross development system
  4. #
  5. # - adjust CROSSDIR below for your setup
  6. # - define GCC to be the path to your hosts C compiler (gcc preferred)
  7. # - If you are going to run the cross linker on a machine that aligns structures
  8. #   at longword boundaries (machines such as Sun-Sparc, Convex etc) add
  9. #   -DWORD_ALIGNED to CFLAGS
  10. # - If you are going to run the cross linker on a machine that has the opposite
  11. #    byte sex to a m68k, ie a little endian host, the add -DBYTE_SWAP to CFLAGS.
  12. #
  13. CROSSDIR = /net/acae127/home/bammi/atari/cross-minix
  14. CROSSBIN = $(CROSSDIR)/bin
  15. CROSSLIB = $(CROSSDIR)/lib
  16. CROSSINC = $(CROSSDIR)/include
  17.  
  18. # Host GCC
  19. CC = cc
  20. # Host include dir
  21. HOSTINC = /usr/include
  22.  
  23. CFLAGS = -O -g -I. -I$(HOSTINC) -I$(CROSSINC) -DCROSSATARI=1 -DMINIX=1\
  24. -DCROSSDIR=\"$(CROSSDIR)\" -DCROSSLIB=\"$(CROSSLIB)\" -DWORD_ALIGNED=1
  25. # define if on an a 32 bit alignment host
  26. # -DWORD_ALIGNED
  27.  
  28. all: ld
  29.  
  30. #
  31. # the 'regular' linker, produces atari executables
  32. #
  33. ld : ld.o cplusdem.o
  34.     $(CC) -o ld ld.o cplusdem.o
  35.  
  36. install: ld 
  37.     cp ld $(CROSSLIB)/gcc-ld
  38.  
  39. clean:
  40.     rm -f *.o core
  41.